﻿using System;
using System.ComponentModel;
using System.Drawing;

namespace Plugins.Controls
{
    [Serializable]
    [TypeConverterAttribute(typeof(ExpandableObjectConverter))]
    public class BackgroundProperty
    {
        private PluginWindow _window;

        internal BackgroundProperty(PluginWindow window) { this._window = window; }

        public GradientColorThemeType Theme
        {
            get
            {
                return _window.BackgroundControl.Theme;
            }
            set
            {
                _window.BackgroundControl.Theme = value;
            }
        }
        public Color TransparentColor
        {
            get
            {
                return _window.BackgroundControl.TransparentColor;
            }
            set
            {
                _window.BackgroundControl.TransparentColor = value;
            }
        }
        public Image Image
        {
            get
            {
                return _window.BackgroundControl.Image;
            }
            set
            {
                _window.BackgroundControl.Image = value;
            }
        }
    }
}
